package com.probox.common.entity.service.order;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.common.entity.domain.order.OrderInfoShare;
import com.probox.order.api.domain.ProfitShareVo;

import java.util.List;

/**
 * 订单分账信息Service接口
 * 
 * @author usoft
 * @date 2022-01-20
 */
public interface IOrderInfoShareService extends IService<OrderInfoShare> {


        /**
         *
         * @param orderNo
         * @param rquest
         * @param response
         * @return
         */
        public boolean save(String orderNo, String returnNo, String action, Long amount, ProfitShareVo rquest, ProfitShareVo response);

        /**
         * 查询订单分账信息
         *
         * @param shareId 订单分账信息ID
         * @return 订单分账信息
         */
        public OrderInfoShare selectOrderInfoShareById(Long shareId);


        /**
         * 查询订单分账信息列表
         *
         * @param orderInfoShare 订单分账信息
         * @return 订单分账信息集合
         */
        public List<OrderInfoShare> queryList(OrderInfoShare orderInfoShare);


        /**
         * 新增订单分账信息
         *
         * @param orderInfoShare 订单分账信息
         * @return 结果
         */
        public boolean insertOrderInfoShare(OrderInfoShare orderInfoShare);

        /**
         * 修改订单分账信息
         *
         * @param orderInfoShare 订单分账信息
         * @return 结果
         */
        public boolean updateOrderInfoShare(OrderInfoShare orderInfoShare);

        /**
         * 批量删除订单分账信息
         *
         * @param shareIds 需要删除的订单分账信息ID
         * @return 结果
         */
        public boolean deleteOrderInfoShareByIds(Long[] shareIds);




}